package com.example.spring_mysql;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @author: sz
 * @date: 2022/9/9 16:21
 * @description:
 */
@Component
@Order(value = 1)
public class AppStartListener implements CommandLineRunner {

//    @Autowired
//    private RedisTemplate<String, Object> redisTemplate;

    @Override
    public void run(String... args) throws Exception {
        System.out.println(" ===================== app is running finish ... =====================");
        PrintSQL.print();
    }
}
